<%--
  Created by IntelliJ IDEA.
  User: 邢式瑞
  Date: 2022/9/13
  Time: 17:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
</head>
<body>
<span>
<img src="${pageContext.request.contextPath}/captcha" style="width:85px" id="cap" onclick=" " />
    <input type="text" name="yzm">
</span>
<script type="text/javascript">
    $(function(){

        $("#cap").click(function(){
            //刷新验证码
            path = $(this).attr("src")+"?"+new Date().getTime();
            $(this).attr("src",path);
        });

    });
</script>
</body>
</html>
